package com.stkouyu.xiansheng.api;


import com.stkouyu.xiansheng.entity.warrent.WarrantEntity;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by pengmi on 2019/6/24.
 * Description:
 */
public interface SSoundApi {


    @Headers({"Content-Type:application/x-www-form-urlencoded","CONNECT_TIMEOUT:3000","READ_TIMEOUT:3000","WRITE_TIMEOUT:3000"})
    @FormUrlEncoded
    @POST("auth/authorize")
    Observable<WarrantEntity> getWarrantID(
            @Field("appid") String appid,
            @Field("timestamp") String timestamp,
            @Field("user_id") String user_id,
            @Field("user_client_ip") String request_sign,
            @Field("request_sign") String privateKey,
            @Field("warrant_available") String warrant_available
    );
}
